<div
	style="min-height: 300px; padding-bottom: 20px; width: 98%; float: left"
	class="portlet x12">
<div class="portlet-header">
<h4>
	<a href="<?php echo base_url();?>admin/gallery/listalbum">Trở về danh sách album</a>
</h4>
</div>

<!-- .portlet-header -->
<div class="portlet-content">
<div class="field">
	<form class="form label-inline" style="width: 100%;" id="form_edit_add" method="post" action="<?php echo base_url();?>admin/gallery/addphotos" enctype="multipart/form-data">
		<label for="image">Upload ảnh &nbsp;</label>
		<input type="file" name="img" />
		<input type="hidden" name="albumid" id="albumid" value="<?php echo $this->uri->segment (4); ?>">
		<input type="submit" class="btn btn-orange" id="Upload" value="Upload">
	</form>
</div>
<div style="padding:10px;text-align:justify;">
	<?php
	if (count($lists)>0){
		foreach ($lists as $item){
	?>
	<div style="float:left;height:130px;width:130px;text-align:center;margin:10px;">
		<div style="float:right;"><a href="javascript:deletePhoto('<?php echo $item->id; ?>','<?php echo $this->uri->segment (4); ?>');"><img border="0" align="absmiddle" src="<?php echo base_url (); ?>application/views/back_end/images/close.gif"></a></div>
		<img src="<?php echo base_url (); ?>application/storage/images/<?php echo $item->file_name; ?>" alt="picture" width="130" height="130" />
	</div>
	<?php }
	}?>
</div>
</div>
<!--END main-->
<script>



function deletePhoto(id,album){

	var store_del = confirm("Xoá hình ảnh ?");
	if(store_del==true){
		window.location="<?php echo base_url();?>admin/gallery/delphoto/"+id+"/"+album;
	}else{
		return false;
	}
}
function edit_info(id){
	document.location.href="<?php
	echo base_url ();
	?>admin/gallery/edit_theme/"+id;
}
</script>